import Request from '@/utils/request';

/**
 * 合作单位表api
 *
 * @author jizhongbao
 * @date 2022/01/10 15:08
 */
export class CooperationUnitApi {
  /**
   * 新增
   *
   * @author jizhongbao
   * @date 2022/01/10 15:08
   */
  static add(params) {
    return Request.post('/cooperationUnit/add', params);
  }

  /**
   * 修改
   *
   * @author jizhongbao
   * @date 2022/01/10 15:08
   */
  static edit(params) {
    return Request.post('/cooperationUnit/edit', params);
  }

  /**
  * 修改状态
  *
  * @author jizhongbao
  * @date 2022/01/10 15:07
  */
  static changeStatus(params) {
    return Request.post('/cooperationUnit/changeStatus', params);
  }

  /**
   * 删除
   *
   * @author jizhongbao
   * @date 2022/01/10 15:08
   */
  static delete(params) {
    return Request.post('/cooperationUnit/delete', params);
  }

  /**
   * 详情
   *
   * @author jizhongbao
   * @date 2022/01/10 15:08
   */
  static detail(params) {
    return Request.getAndLoadData('/cooperationUnit/detail', params);
  }
}
